Repository navigation
Add desktop app with book library and 4-step flow - #18
Merged
Merged
Conversation
Extraction leaves about one sentence per line, and each line became a separate Kokoro call. Join lines into ~450-character blocks per paragraph: 12x real time on MPS instead of 2x, without a pause after every sentence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Library keeps one folder per book with book.json, text, chapter audio and exports. JobService runs import, create and export jobs on one worker with pause, stop, measured speed and an activity log. Voice samples run on their own thread with a cached pipeline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A desktop window with a library and a four-step book flow: check text, pick a voice, create audio and export. A local server on 127.0.0.1 serves the app and library media with a session token and Range support. The Tk window stays available with --ui classic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Skip Standard Ebooks front matter, ignore single-word header tips, title bare numerals as Chapter N, store export paths relative to the book, show home paths as ~, apply theme changes live and format numbers in English. PDF_NARRATOR_CONFIG_DIR moves the settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ordered install and usage steps with screenshots of each stage, file layout, command line options, optional setups, troubleshooting and test status. Replace the old Tk screenshot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Device detection imports torch in a thread. On CI it slowed the import job past the 10 s helper limit, so remove_book saw a running job. Tests now skip detection and wait up to 60 s with a clear failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #17, which is merged into
main.Summary
A new desktop app replaces the Tk window as the default interface. It is a native window (pywebview over the system web view) with a library of books and a four-step flow: Check text → Pick a voice → Create audio → Export.
Changes
perf: narrate paragraph blocks, not sentencesfeat: add book library and job servicelibrary.py: one folder per book withbook.json, text, chapter audio and exports; chapter status (done, waiting, needs a redo) from text hashes.jobs.py: one background worker for import, create and export, with pause, stop, measured speed and an activity log.voices.py: readable voice names and the quality grades from Kokoro'sVOICES.md.feat: add pywebview desktop appwebui/: native window, a local server on127.0.0.1(random port, session token, Range requests, library files only) and the interface.pdf-narratorwith no arguments opens it;--ui classicopens the Tk window.fix: polish library details found in testingChapter Ntitles for bare numerals, export paths relative to the book,~paths, live theme changes.docs: rewrite README for the desktop appci: run checks on stacked pull requestsmain.test: keep API tests independent of torch importEvidence
uv run --locked --group dev pytest -q→130 passed, 2 skipped, 12 subtests passed(the 2 skips are optional OCR dependencies, as before).ffprobe: 2 chapters with real titles, cover, title and author.Not verified
Follow-ups
Mr.becomesMisteron its own line). Speech is not affected, because lines are joined into blocks, but the text in Check text looks broken.ttkbootstrapafter the new app is tested on Windows and Linux.🤖 Generated with Claude Code